import Mock from "mockjs";
import banner from "./banner.json";
import floor from "./floor.json";
import address from "./address.json"

//书写mock接口和响应 请求banner数据
Mock.mock("/mock-api/banner" , "get" , () => {
    return {
        data: banner,
        code: 200,
        message: "okkk"
    }
})

//书写mock接口和响应 请求floor数据
Mock.mock("/mock-api/floor" , "get" , () => {
    return {
        data: floor,
        code: 200,
        message: "okkk"
    }
})

//书写mock接口和响应 请求address数据
Mock.mock("/mock-api/address" , "get" , () => {
    return{
        data: address,
        code: 200,
        meaasge: "okkk"
    }
})
